// component/holdUser/holdUser.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    hold: {
      type: String,
      value: 0
    },
    isIndex: {
      type: Boolean,
      value: false
    },
    tipsText: {
      type: String,
      value: '继续试试房源搬家'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    closeHold(){
      this.triggerEvent("closeHold")
    },
    openkefu(){
      this.triggerEvent("openkefu")
    },
    goCourse(){
      this.triggerEvent("goCourse")
    },
    goMoveHouse(){
      this.closeHold()

      if (this.data.hold == 4) {
        wx.navigateTo({
          url: '/pages/home/scanWeb/scanWeb',
        })
      } else {
        wx.navigateTo({
          url: '/pages/gatherHouse/scanAddHouse/scanAddHouse',
        })
      }
    },
  }
})
